package com.streamsets.datacollector.model.etl.bean; /**
 * package: com.streamsets.datacollector.dto.etl.model
 *
 * @description :
 * @author ： zw.liang
 * @date ： 2020/12/30 21:32
 */

import java.util.List;

/**
 *
 *
 * @author: zw.liang
 *
 * @date: 2020-12-30 21:32
 **/

public class FieldValueMaskBean {
    /* 屏蔽某一列的值
     * 示例："fields" : [ "/remark", "/school_org_id" ],
     */
    private List<String> fieldReplaceColumns;

    // 屏蔽的正则
    private String regex = "(.*)";

    /**
     * 固定长度FIXED_LENGTH，变长度VARIABLE_LENGTH，自定义CUSTOM（mask需要填值） 正则REGEX（groupsToShow，mask 都填bug）
     */
    private String maskType;

    /**
     * 自定义CUSTOM时的Custom Mask
     */
    private String mask;

    /**
     * 用于展示的值
     */
    private String groupsToShow;

    public List<String> getFieldReplaceColumns() {
        return fieldReplaceColumns;
    }

    public void setFieldReplaceColumns(List<String> fieldReplaceColumns) {
        this.fieldReplaceColumns = fieldReplaceColumns;
    }

    public String getRegex() {
        return regex;
    }

    public void setRegex(String regex) {
        this.regex = regex;
    }

    public String getMaskType() {
        return maskType;
    }

    public void setMaskType(String maskType) {
        this.maskType = maskType;
    }

    public String getMask() {
        return mask;
    }

    public void setMask(String mask) {
        this.mask = mask;
    }

    public String getGroupsToShow() {
        return groupsToShow;
    }

    public void setGroupsToShow(String groupsToShow) {
        this.groupsToShow = groupsToShow;
    }
}
